package com.ysy.logistics.entities.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysy.common.entities.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 姚斯羽
 * @date 2025/4/18 10:44
 * @description: 用户系统通知
 */
@Data
@TableName("user_notice")
@Schema(name = "user_notice", description = "用户系统通知")
@Accessors(chain = true)
public class UserNotice extends BaseEntity {
    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private String userId;

    @Schema(description = "通知id")
    @TableField(value = "notice_id")
    private String noticeId;

    @Schema(description = "是否已读")
    @TableField(value = "state")
    private Boolean state = false;

    @Schema(description = "读取时间")
    @TableField(value = "read_time")
    private String readTime;


}
